<?php

/**
 * This class brings support for configuration
 * based on the host CMS 
 *
 * @author JeyDotC
 */
abstract class AppConfig {
    
    function __construct() {
        $this->load();
    }
    
    protected abstract function load();
    
    public abstract function get($key);
    
    public function __set($name, $value) {
        throw new Exception("The config is a read only object.");
    }
    
    public function __get($name) {
        return $this->get($name);
    }
}

?>
